//模型创建 https://www.sequelize.com.cn/core-concepts/model-basics#%E5%AD%97%E7%AC%A6%E4%B8%B2

//分类
module.exports = ( sequelize, Sequelize ) => {
    return sequelize.define( "skill", {
        id: {
            type: Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4 // 或 DataTypes.UUIDV1
        },
        name: {
            type: Sequelize.STRING,
            notNull: true,
            comment: '技能名称',
        },
        show: {
            type: Sequelize.STRING,
            comment: '是否显示',
            defaultValue: true
        },
        index: {
            type: Sequelize.STRING,
            comment: '排序',
            
        },
        type: {
            type: Sequelize.STRING,
            comment: '类型',
            defaultValue: 1
        },
       
        
        
    }, {
        tableName: 'skill'
    } );
};
